package com.xbongbong.pro.fundtransfer.pojo;

import com.xbongbong.paas.pojo.AttrValuePojo;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author: 汪腾伟
 * @date: Created in 2021/6/15 15:11
 * @description：用于资金调拨单批量编辑功能
 */
@Getter
@Setter
@ToString
public class FundTransferEditAttrUpdateDTO extends BaseDTO {
    private static final long serialVersionUID = -1011528855410757268L;

    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.common.appId.NotNull}")
    private Long appId;

    @NotNull(message = "{dto.msg.common.menuId.NotNull}")
    private Long menuId;

    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.common.formId.NotNull}")
    private Long formId;


    @NotNull(message = "{dto.msg.otherExpenseEditAttrUpdate.dataIdList.NotNull}")
    @Size(max = 100, min = 1, message = "{dto.msg.otherExpenseEditAttrUpdate.dataIdList.Size}")
    private List<Long> dataIdList;

    /**
     * 批量更新的字段
     */
    private List<AttrValuePojo> fieldEditedList;

    /**
     * 字段类型
     */
    @NotNull(message = "{dto.msg.otherExpenseEditAttrUpdate.fieldType.NotNull}")
    private Integer fieldType;

    /**
     * saas标识
     * @see com.xbongbong.pro.enums.SaasMarkEnum
     */
    private Integer saasMark;

    /**
     * 业务类型
     * @see com.xbongbong.saas.enums.XbbRefTypeEnum
     */
    private Integer businessType;

    /**
     * 日志记录更新的字段
     */
    private List<AttrValuePojo> logFieldEditedList;

    /**
     * 是否有依赖字段，前端未传，主方法已判断
     */
    private Boolean isFieldDependence;;
}
